## ELinks 0.12pre6 configuration file

## This is ELinks configuration file. You can edit it manually,
## if you wish so; this file is edited by ELinks when you save
## options through UI, however only option values will be altered
## and missing options will be added at the end of file; if option
## is not written in this file, but in some file included from it,
## it is NOT counted as missing. Note that all your formatting,
## own comments and so on will be kept as-is.
##
## Obviously, if you don't like what ELinks is going to do with
## this file, you can change it by altering the config.saving_style
## option. Come on, aren't we friendly guys after all?


##############################

#  Configuration handling options.
  set config.saving_style_w = 1

#  Cookies options.
  set cookies.accept_policy = 0
  set cookies.max_age = 0
  set cookies.paranoid_security = 1
  set cookies.save = 0
  set cookies.resave = 0

#  Protocol specific options.
  set protocol.rewrite.smart.d = "https://www.duckduckgo.com/html?q=%s"
  set protocol.rewrite.smart.a = "https://wiki.archlinux.org/index.php?search=%s"

#  User interface options.
  set ui.language = "System"
  #set ui.show_ip = 1
  set ui.success_msgbox = 0

  set ui.colors.color.dialog.text.text = "black"
  set ui.colors.color.dialog.text.background = "white"
  set ui.colors.color.dialog.generic.text = "pink"
  set ui.colors.color.dialog.field-text.text = "yellow"
  set ui.colors.color.dialog.frame.background = "white"

  set ui.colors.color.title.title-bar.text = "black"
  set ui.colors.color.title.title-bar.background = "yellow"
  set ui.colors.color.title.title-text.background = "orange"

  #set ui.colors.color.status.showip-text.background = "orange"
  set ui.colors.color.status.status-bar.background = "orange"
  set ui.colors.color.status.status-text.background = "orange"

#  Terminal options.
  set terminal.xterm.colors = 1
  set terminal.xterm.type = 2
  set terminal.linux.colors = 1
  #set terminal.linux.type = 5
  set terminal.linux.charset = "utf-8"
  set terminal.screen.colors = 1

#  Document options.
  set document.history.global.enable = 0
  set document.history.global.max_items = 1
  set document.history.global.display_type = 0
  set document.history.keep_unhistory = 0

  set document.cache.format.size = 0
  set document.cache.memory.size = 0

  set document.colors.use_document_colors = 0
  set document.colors.text = "yellow"
  set document.colors.link = "aqua"

#  Connection options.
  set connection.ssl.cert_verify = 1


##################################
# key bindings

# vim/vimFx style navigation
bind "main" "j" = "scroll-down"
bind "main" "k" = "scroll-up"
bind "main" "H" = "scroll-left"
bind "main" "L" = "scroll-right"

bind "main" "h" = "history-move-back"
bind "main" "l" = "history-move-forward"

#bind "main" "u" = "move-half-page-up"
#bind "main" "d" = "move-half-page-down"

bind "main" "Shift-J" = "tab-prev"
bind "main" "Shift-k" = "tab-next"

# link movement
bind "main" "Right" = "move-link-right-line"
bind "main" "Left" = "move-link-left-line"
bind "main" "Down" = "move-link-down"
bind "main" "Up" = "move-link-up"

# various functions
bind "main" "f" = "toggle-numbered-links"
bind "main" "g" = "goto-url"
#bind "main" "z" = "move-current-top"
bind "main" "G" = "move-document-end"
bind "main" "Ctrl-K" = "keybinding-manager"
bind "main" "P" = "save-url-as"
# save page as source
bind "main" "S" = "save-as"

# show currentl url in goto window
bind "main" "Ctrl-G" = "goto-url-current"
